<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<c:if test="${not empty param.login_error}">
    <div class="error">
        Your login attempt was not successful, try again.<br />
        Reason: ${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}
    </div>
</c:if>

<s:form action="/j_spring_security_check" method="POST"	validate="false" theme="simple">							
	<table>
		<tbody>
			<tr>
				<td><label for="email">Username</label>
				</td>
				<td><label for="pass">Password</label>
				</td>
			</tr>
			<tr>
				<td>												
					<input tabindex="1" name="j_username"/>
				</td>
				<td>												
					<input type="password" tabindex="2" name="j_password"/>
				</td>
				<td><label for="submitLogin">
					 <input type="submit" id="submitLogin" tabindex="4" value="Log In"/>
				</label>
				</td>
			</tr>
			<tr>
				<td colspan="2">
				</td>
				<td><a rel="nofollow" href="<s:url action="account/addCustomer"/>">Register</a></td>
			</tr>
			<s:actionerror />
			<s:fielderror />
		</tbody>
	</table>
</s:form>
